@c-red: #A92123;
@c-gray: #7A7A7A;
@import "base";

body {
  min-width: 320px;
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
  font-family: 'Microsoft Yahei', Verdana, Arial, Helvetica, sans-serif;
  color: #212121;
  -webkit-text-size-adjust: none;
  background: #F8F8F8;
}

.content-wrapper {
  width: 100%;
  position: relative;
  max-width: 640px;
  min-width: 320px;
  overflow: hidden;
  margin: 0 auto;
  font-size: 16px;
  padding: 0;
  margin-bottom: 50px;
}

// .bhz-header {
//   position: relative;
//   width: 100%;
//   background: #000000;
//   z-index: 100;
//   color: #fff;
//   height: 42px;
//   line-height: 42px;
//   text-align: center;
//   a {
//     width: 48px;
//     color: #fff;
//     display: inline-block;
//     height: 42px;
//     line-height: 42px;
//     padding: 0 14px;
//     i {
//       line-height: 42px;
//       font-size: 16px;
//     }
//   }
//   .title {
//     width: 60%;
//     display: inline-block;
//     height: 42px;
//     line-height: 42px;
//     font-size: 14px;
//     overflow: hidden;
//     white-space: nowrap;
//     padding: 0;
//     text-overflow: ellipsis;
//   }
//   .m-a-back {
//     float: left;
//     i {
//       font-weight: bold;
//     }
//   }
//   .m-a-menu {
//     float: right;
//     i {
//       font-size: 20px;
//     }
//   }
// }

.page-content {
  padding: 25px 16px;
}

.bhz-header{
  width: 100%;
  height: 47px;
  background-color: #A92123;
  padding: 0 20px;
  position: relative;
  .logo-wrap{
    float: left;
    width: 66px;
    height: 24px;
    margin-top: 10px;
    img{
      width: 100%;
    }
  }
  .search-input{
    padding-left: 80px;
    padding-right: 40px;
    margin-top: 10px;
    .search-form{
      position: relative;
    }
    input{
      height: 24px;
      border-radius: 50px;
      width: 100%;
      padding-left: 32px;
      font-size: 12px;
      color: rgba(169, 33, 35, 0.5);
      border:none;
      &::-webkit-input-placeholder {
        color: rgba(169, 33, 35, 0.5);
      }
      &:-moz-placeholder {
        color: rgba(169, 33, 35, 0.5);
      }
      &::-moz-placeholder {
        color: rgba(169, 33, 35, 0.5);
      }
      &:-ms-input-placeholder {
        color: rgba(169, 33, 35, 0.5);
      }
    }
    .icon{
      width: 19px;
      height: 18px;
      display: inline-block;
      position: absolute;
      top: 3px;
      left: 10px;
    }
    .icon-search{
      background-image: url("../images/search.png");
      background-repeat: no-repeat;
      background-size: cover;
    }
  }
  .score-shop{
    position: absolute;
    top: 10px;
    right: 20px;
    width: 19px;
    height: 18px;
    img{
      width: 100%;
    }
  }
}

.bhz-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 61px;
  border-top: 1px solid @c-red;
  color: @c-red;
  background: #FFF;
  z-index: 10;
  .footer-table{
    width: 100%;
    table-layout: fixed;
    td{
      width: 25%;
      height: 60px;
      vertical-align: middle;
      a{
        display: block;
        text-align: center;

        .icon{
          display: block;
        }
        .text{
          display: block;
          color: @c-red;
          font-size: 12px;
          margin-top: 3px;
        }
      }
      &.select{
        background-color: @c-red;
        .icon{
          color: #fff;
        }
        .text{
          color: #fff;
        }
      }
    }
  }
}

.page-search{
  .search-header{
    background-color: #A92123;
    height: 47px;
    padding: 13px 20px;
    position: relative;
    .icon{
      width: 12px;
      height: 21px;
      display: inline-block;
      float: left;
    }
    .icon-back{
      background-image: url("../images/icon-arrow-left-white.png");
      background-size: cover;
      background-repeat: no-repeat;
    }
    .search-input{
      padding-left: 60px;
      padding-right: 70px;
      .search-form{
        position: relative;
      }
      input{
        height: 24px;
        border-radius: 50px;
        width: 100%;
        padding-left: 32px;
        font-size: 12px;
        color: rgba(169, 33, 35, 0.5);
        &::-webkit-input-placeholder {
          color: rgba(169, 33, 35, 0.5);
        }
        &:-moz-placeholder {
          color: rgba(169, 33, 35, 0.5);
        }
        &::-moz-placeholder {
          color: rgba(169, 33, 35, 0.5);
        }
        &:-ms-input-placeholder {
          color: rgba(169, 33, 35, 0.5);
        }
      }
      .icon-search{
        width: 19px;
        height: 18px;
        display: inline-block;
        position: absolute;
        top: 3px;
        left: 10px;
        background-image: url("../images/search.png");
        background-repeat: no-repeat;
        background-size: cover;
      }
      .icon-delete{
        width: 15px;
        height: 15px;
        top: 5px;
        display: inline-block;
        position: absolute;
        right: 5px;
        background-image: url("../images/delete.png");
        background-repeat: no-repeat;
        background-size: cover;
      }
    }
    .search-btn{
      position: absolute;
      right: 15px;
      top:13px;
      width: 50px;
      text-align: center;
      height: 24px;
      line-height: 24px;
      display: block;
      background: #fff;
      color: #A92123;
      border-radius: 5px;
    }
  }
  .common-search{
    padding: 20px 16px;
    .title-wrap{
      font-size: 15px;
      color: #9C9C9C;
      margin-bottom: 13px;
      .title{
        float: left;
      }
      .refresh-wrap{
        display: block;
        float: right;
        .icon{
          width: 15px;
          height: 15px;
          display: inline-block;
          vertical-align: middle;
        }
        .icon-refresh{
          background-image: url("../images/refresh.png");
          background-repeat: no-repeat;
          background-size: cover;
        }
      }
    }
    .commons-list{
      width: 100%;
      .commons-item{
        width: 30%;
        height: 43px;
        margin-right: 5%;
        margin-bottom: 5px;
        &:nth-child(3n){
          margin-right: 0;
        }
        border:1px solid #CECECE;
        color: #3A3A3A;
        font-size: 17px;
        line-height: 43px;
        padding: 0 5px;
        float: left;
        text-align: center;
      }
    }
  }
  .recent-search{
    .title{
      font-size: 15px;
      color: #9C9C9C;
      margin-bottom: 13px;
      padding-left: 16px;
    }
    .recents-list{
      .recents-item{
        width: 100%;
        padding-left: 16px;
        height: 49px;
        line-height: 49px;
        border-top: 1px solid #CECECE;
        border-bottom: 1px solid #CECECE;
        font-size: 17px;
        color: #3A3A3A;
        margin-bottom: 3px;
      }
    }
    .clear-recent{
      width: 100%;
      display: block;
      text-align: center;
      font-size: 17px;
      color: #3A3A3A;
      height: 49px;
      line-height: 49px;
      margin-top: 5px;
      border-top: 1px solid #CECECE;
      border-bottom: 1px solid #CECECE;
    }
  }
}


//static pages
.page-static{
  padding: 10px 20px;
  .title{

  }
}

//common

.Fl-l{float:left;}
.Fl-r{float:right;}
.Cl-l{clear:left;}
.Cl-b{clear:both;}

.Pos-a{position:absolute;}
.Pos-r{position:relative;}
.Pos-f{position:fixed;}

.clearfix:before, .clearfix:after {
  content: " ";
  /* 1 */

  display: table;
  /* 2 */
}
.clearfix:after {
  clear: both;
}

.icon{
  font-size: 24px;
  color: #A92123;
}

.icon-image{
  display: block;
  background-size: 100%;
  background-repeat: no-repeat;
}

.icon-in-input{
  position: absolute;
  top: 0;
  left: 18px;
  line-height: 48px;
  font-size: 24px;
  color: #A92123;
}

.icon-diament{
  background-image: url("../images/icon-diament.png");
}

.icon-point{
  background-image: url("../images/icon-point.png");
}

.icon-award{
  background-image: url("../images/icon-award.png");
}

.icon-arrow-down{
  background-image: url("../images/icon-arrow-down.png");
}

.icon-arrow-right{
  background-image: url("../images/icon-arrow-right.png");
  width: 10px;
  height: 16px;
  background-size: 100% 100%;
}

.icon-add{
  background-image: url("../images/icon-add.png");
}

.icon-location{
  background-image: url("../images/icon-location.png");
}

.icon-trash{
  background-image: url("../images/icon-trash.png");
}

.icon-user{
  background-image: url("../images/icon-user.png");
}

.icon-mobile{
  background-image: url("../images/icon-mobile.png");
}

.bhz-form {
  .form-group {
    margin-bottom: 10px;
    position: relative;
  }
}

.bhz-input {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 1px solid lightgray;
  background: #fff;
  font-size: 15px;
  color: #252525;
  -webkit-appearance: none;
  border-radius: 3px;
  padding-left: 5px;
  box-sizing: border-box;
}

.input-with-icon {
  padding-left: 50px;
}

.bhz-radiobox{
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #C7C7C7;
  border-radius: 50%;

  &.on{
    background-image: url("../images/icon-radio-on.png");
    background-size: 100%;
    background-repeat: no-repeat;
  }
}

.bhz-checkbox{
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #C7C7C7;
  border-radius: 3px;

  &.on{
    background-image: url("../images/icon-checkbox-on.png");
    background-size: 100%;
    background-repeat: no-repeat;
  }
}


.bhz-checkbox-wrap {
  font-size: 13px;
  .bhz-check {
    height: 13px;
  }

  .bhz-checkbox-label{
    display: inline;
    vertical-align: top;
    line-height: 20px;
    margin-left: 5px;
  }

}
.form-group-inline{
  position: relative;
  .label{
    position: absolute;
    top: 0px;
    left: 15px;
    line-height: 46px;
    color: #666666;
    .star{
      color: @c-red;
      margin-right: 10px;
    }
  }
  .bhz-input{
    text-align: right;
    padding-right: 20px;
    padding-left: 100px;
  }
}

.bhz-form-group{
  min-height: 42px;
  background: #FFF;
  border: 1px solid lightgray;
  border-radius: 3px;
  display: table;
  width: 100%;
  padding-left: 10px;
  .label{
    display: table-cell;
    vertical-align: middle;

  }
}
.bhz-select{
  border: 1px solid #DDDDDD;
  border-radius: 3px;
  background: #FFF;
  height: 42px;
  width: 100%;
  display: table;
  vertical-align: middle;
  color: #666666;
  .label{
    display: table-cell;
    width: 80px;
    padding-left: 10px;
    vertical-align: middle;
  }

  .input-wrap{
    display: table-cell;
    position: relative;
  }

  .icon-arrow-down{
    height: 8px;
    width: 12px;
    position: absolute;
    right: 16px;
    top: 17px;
  }
  select{
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    border: none;
    background: #FFF;
    padding-right: 40px;
  }
}

.btn-wrap {
  height: 100%;
  padding-top: 12px;
  font-size: 0px;
  position: relative;
  .btn {
    display: inline-block;
    height: 48px;
    text-align: center;
    width: 106px;
    border-radius: 2px;
    background: @c-red;
    margin-right: 5px;
    line-height: 48px;
    font-size: 18px;
    color: #FFFFFF;
    &.disabled {
      background: @c-gray;
    }
  }
  .btn-main,
  .btn-next {
    background: @c-red;
  }

  .btn-cancel{
    background: #ccc;
  }

  .btn-fullwidth{
    width: 100%;
  }
}

.btn-inline{
  display: inline-block;
}

h2.group-title{
  font-size: 18px;
  color: #6F6F6F;
}



/** Message box */
.bhz-message-box {
  position: fixed;
  bottom: 50%;
  width: 100%;
  text-align: center;
  z-index: 1001;
}
.bhz-message-box .message-content {
  color: #fff;
  height: 48px;
  max-width: 90%;
  padding: 0 20px;
  font-size: 14px;
  line-height: 48px;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  background: rgba(0,0,0,0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


.bhz-message-dialog {
  z-index: 5001;
  position: fixed;
  bottom: 50%;
  text-align: center;
  background: #fff;
  font-size: 14px;
  padding: 28px 16px 20px 16px;
  border-radius: 5px;
  width: 54%;
  margin-left: 23%;
  .message-content{
    .content-important{
      font-weight: bold;
    }
  }
  .button-content{
    margin-top: 18px;
    background: #000;
    height: 37px;
    line-height: 37px;
    color: #fff;
  }
  .cover{
    opacity: 0.5;
  }
}

.cover{
  position: fixed;
  z-index: 500;
  width: 100%;
  max-width: 640px;
  height: 100%;
  background : black;
  opacity: 0.6;
  top:0px;
}

.ngdialog.ngdialog-theme-default .ngdialog-content{
  background: #FFF;
}

.ngdialog.ngdialog-theme-default .ngdialog-content{
  .loading-dialog{
    .ngdialog-text-center{
      text-align: center;
      img{
        width: 32px;
        margin-left: 10px;
      }
    }
  }
}

/*****************************************************
 缩略文字样式
******************************************************/
.auto-cut-word-two-line{
  overflow: hidden;
  display: -webkit-box;
  text-overflow:ellipsis;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.auto-cut-word-line{
  width: 100%;
  overflow: hidden;
  text-overflow:ellipsis;
  -ms-text-overflow: ellipsis; 
  -o-text-overflow: ellipsis;
  white-space:nowrap;
}

.swiper-slide{
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

@import "address";
@import "account";
@import "product";
@import "order";
@import "vendor";
@import "home";
@import "checkout";

/**
 * 6.28
 */
.product-item {
  position: relative;
}
.top-left-icon {
  position: absolute;
  top: 3%;
  left: 3%;
  width: 10%;
}
.bottom-left-icon {
  position: absolute;
  bottom: 23%;
  left: 3%;
}
.count-number {
  color: #A92123;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 0px 10%;
}
.products-list .top-left-icon {
  top: 0%;
  left: 0%;
  width: 30%;
}
.products-list .bottom-left-icon {
  bottom: 5%;
  left: 0%;
}
.product-banner .bottom-left-icon {
  bottom: 3%;
  left: 3%;
}
.product-banner .count-number {
  font-size: 20px;
}
.page-home .top-left-icon {
  width: 15%;
}
.vendor-product-item .top-left-icon {
  width: 15%;
}